Skip to content

Conversation

taiki-e
Copy link
Contributor

@taiki-e taiki-e commented Sep 21, 2025

powerpc/powerpc64 syscalls can clobber ctr and xer.

Since ctr cannot currently be marked as clobbered (will be fixed in rust-lang/rust#146831), this PR only marks xer as clobbered for now. That PR has been merged and this PR has been updated to use it.

Refs:

@taiki-e taiki-e marked this pull request as draft September 22, 2025 14:38
@taiki-e
Copy link
Contributor Author

taiki-e commented Sep 22, 2025

Since ctr cannot currently be marked as clobbered (will be fixed in rust-lang/rust#146831), this PR only marks xer as clobbered for now.

That PR just merged, so I'll update this PR to also mark ctr as clobbered.

@taiki-e taiki-e changed the title Mark xer as clobbered in powerpc/powerpc64 syscalls Mark ctr and xer as clobbered in powerpc/powerpc64 syscalls Sep 23, 2025
@taiki-e taiki-e marked this pull request as ready for review September 23, 2025 04:34
@taiki-e
Copy link
Contributor Author

taiki-e commented Sep 23, 2025

Since ctr cannot currently be marked as clobbered (will be fixed in rust-lang/rust#146831), this PR only marks xer as clobbered for now.

That PR just merged, so I'll update this PR to also mark ctr as clobbered.

Updated to mark ctr as clobbered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant